package com.chenyue.cm.user.client;


import com.chenyue.cm.bean.Success;
import com.chenyue.cm.user.domain.JdAppUser;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述: author: Tsion date: 2020-02-24
 */

public interface GroupGoodsServiceClient {

    /**
     * 校验库存信息
     * @param
     * @return
     */
    @RequestMapping(value = "/groupGoodsApi/groupBookCheckInfo", method = RequestMethod.GET)
    Success groupBookCheckInfo(@RequestParam("groupGoodsId") String groupGoodsId, @RequestParam("type") String type, @RequestParam("memberId") String memberId);

    /**
     * 校验库存信息
     * @param
     * @return
     */
    @RequestMapping(value = "/groupGoodsApi/groupBook", method = RequestMethod.GET)
    Success groupBook(@RequestParam("memberInfo") JdAppUser memberInfo, @RequestParam("groupGoodsId") String groupGoodsId, @RequestParam("type") String type, @RequestParam("groupMemberIdExist") String groupMemberIdExist, @RequestParam("orderId") String orderId);


    /**
     * 更新库存信息
     * @param groupGoodsId
     * @return
     */
    @RequestMapping(value = "/groupGoodsApi/changeStockInfo", method = RequestMethod.GET)
    Success changeStockInfo(@RequestParam("groupGoodsId") String groupGoodsId);

}
